package vn.fsoft.gst.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import vn.fsoft.gst.dao.ContactDAO;
import vn.fsoft.gst.domain.Contact;

/**
 * 
 * @author Tung
 *
 */

@Service
public class ContactServiceImp implements ContactService{
    
	@Autowired
	private ContactDAO contactDAO;
	
	@Transactional
	public List<Contact> getListContact() {
    	return contactDAO.getListContact();
    }
	
	@Transactional
	public Contact getContactById(int id) {
		return contactDAO.getContactById(id);
	}
}
